home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Programmation / Gooey1.3.1 / C++ Templates / mmCModelessDialog.c < prev    next >
Text File  |  1993-12-17  |  2KB  |  73 lines

  1. $$Message MM Modeless Dialog, mm:mmModelessDialogObject.cp
  2. $$File mm:mmModelessDialogObject.cp
  3. /*  mmModelessDialogObject                 */
  4. /*  $CopyRight$ */
  5.  
  6. /*    File name:  mmModelessDialogObject
  7.     Function:  Basic modeless dialog object
  8.  
  9.     History: $Date$ Original by $Author$
  10.  
  11. */
  12.  
  13. #include "mmCommon$Prototype.name$.h"    /* Common */
  14. #include "Common$Prototype.name$.h"        /* Common */
  15.  
  16.  
  17. /* ======================================================= */
  18. /* ======================================================= */
  19.  
  20. void CmmModelessDialog::Init()
  21. {
  22.  
  23. inherited::Init();
  24.  
  25. this->theWindow = nil;
  26. this->ExitDialog = false;
  27. /* Expected to be overridden by the window code */
  28. }
  29.  
  30. /* ======================================================= */
  31.  
  32. /* Routine: Moved */
  33. /* Purpose: We were moved, possibly to another screen and screen depth */
  34.  
  35. void CmmModelessDialog::Moved(Rect *OldRect,WindowPtr theWindow)/* Moved this window */
  36. {
  37. WindowPtr    SavePort;                                /* Place to save the last port */
  38.  
  39.  
  40. if (this->theWindow == theWindow)                /* Only do if the window is us */
  41.     {
  42.     GetPort(&SavePort);                            /* Save the current port */
  43.     SetPort(theWindow);                            /* Set the port to my window */
  44.  
  45.  
  46.     SetPort(SavePort);                            /* Restore the old port */
  47.     }
  48. }
  49.  
  50. /* ======================================================= */
  51.  
  52. void CmmModelessDialog::OpenExtras()
  53. {
  54. }
  55.  
  56. /* ======================================================= */
  57.  
  58. void CmmModelessDialog::UpdateExtras()
  59. {
  60. }
  61.  
  62. /* ======================================================= */
  63.  
  64. void CmmModelessDialog::FilterTheHit(short *itemHit,EventRecord *myEvent)
  65. {
  66. }
  67.  
  68. /* ======================================================= */
  69. /* ======================================================= */
  70. $$CloseFile
  71.  
  72.  
  73.